package com.system.user.service;

import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import com.system.user.entity.User;

public interface IUserService {
	public void saveOrUpdate(User user);
	public void update(User user);
	public void delete(User user);
	public void delete(List<String> ids);
	public User findOne(String id);
	public List<User> findAll();
	public User findUser(String userName, String password);
	public int updateUser(String password,String id);
	public int deleteUser(String[] ids);
	public Page<User> findPage(String userName,Pageable pageable);
	Page<User> findAll(Specification<User> spec, Pageable pageable);
}
